<div class="wrapper" cg-busy="{promise:loading,message:'正在加载...'}">
    <div class="hbox">
        <div class="panel col panel-default no-border">
            <div class="panel-heading">
                <span>缴费查询</span>
            </div>
            <div class="panel-body">
                <form class="form-inline wrapper">
                    <label>报名号：</label>
                    <input type="text" ng-model="examId" class="form-control" />
                    <button ng-click="search(examId)" ng-disabled="!examId" class="btn btn-default">&nbsp;<i class="fa fa-search"></i>&nbsp;查询</button>
                </form>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>报名号</th>
                            <th>订单号</th>
                            <th>订单金额</th>
                            <th>订单状态</th>
                            <th>交易日期</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="item in orders">
                        <td>{{$index+1}}</td>
                        <td>{{item.examId}}</td>
                        <td>{{item.orderId}}</td>
                        <td>{{item.money | currency}}</td>
                        <td>{{item.status == 'COMPLETE'?'支付成功':'未支付'}}</td>
                        <td>{{item.payDate | date}}</td>
                        </tr>
                    </tbody>
                </table>
                <!--
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>报名号</th>
                            <th>缴费类别</th>
                            <th>缴费形式</th>
                            <th>订单号</th>
                            <th>订单金额</th>
                            <th>订单状态</th>
                            <th>创建日期</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="item in orders">
                            <td>{{$index+1}}</td>
                            <td>{{item.examId}}</td>
                            <td>{{item.payType == 1?'艺术':'体育'}}</td>
                            <td>{{item.payFlag == 1?'个人':'集体'}}</td>
                            <td>{{item.payOrder.orderId}}</td>
                            <td>{{item.payOrder.money}}</td>
                            <td>{{item.payOrder.status}}</td>
                            <td>{{item.payOrder.payDateStr}}</td>
                        </tr>
                    </tbody>
                </table>
                -->
            </div>
            <!--
            <div class="panel-footer text-center">
                <button ng-hide="page == 0" ng-click="pagePrev()" class="btn btn-md btn-icon btn-default">&nbsp;<i class="fa fa-chevron-left"></i>&nbsp;</button>
                <span ng-show="pageSize > 0">第{{page+1}}页/共{{pageSize}}页</span>
                <button ng-click="pageNext()" ng-hide="(page+1) == pageSize || pageSize == 0" class="btn btn-md btn-icon btn-default">&nbsp;<i class="fa fa-chevron-right"></i>&nbsp;</button>
            </div>
            -->
        </div>
        
    </div>
    
</div>
